home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.1 / Libraries / Intuition / other_examples / CustGad / makefile < prev    next >
Encoding:
Makefile  |  1992-09-01  |  1.3 KB  |  55 lines

  1. # Custom gadget demo
  2. # LATTICE
  3. # created Jan 9, 1990, for Beta1, EuroDevCon
  4.  
  5. ##### setup    #####
  6. SYM=cg.sym
  7. SYMSRC= sysall.h
  8. SYMDIR=ram:
  9.  
  10. # INCLUDE assign volumes used (or change this line)
  11. # VINCLUDE:    v36 include (stripped) directory
  12. # INCLATTICE:    Lattice's standard include directory, e.g. <stdio.h>
  13. # MYINCLUDE:    development overrides of system includes,
  14. #         you can remove this, or use it for interim bug
  15. #         fixes in the include files
  16. # VLIB:        location of V36 amiga.lib, debug.lib
  17. INCLUDE= -iMYINCLUDE: -iVINCLUDE: -iINCLATTICE:
  18.  
  19. ##### options    #####
  20. # lc pass 1
  21. CFLAGS1=-. $(INCLUDE) -d -cwus -H$(SYMDIR)$(SYM)
  22. # lc pass 2
  23. CFLAGS2=-. -v
  24. # linker
  25. BLOPTS=BATCH BUFSIZE 1024 QUIET SC SD
  26. LIBS=LIB:lcm.lib LIB:lc.lib LIB:debug.lib LIB:amiga.lib 
  27.  
  28. ##### rules    #####
  29. # lattice compiler, separate passes for no particular reason
  30. .c.o:
  31.     @echo "    $*.c pass 1"
  32.     lc1 $(CFLAGS1) -oquad:$*.q $* 
  33.     go quad:$*.q
  34.     @echo "    $*.c pass 2"
  35.     lc2 $(CFLAGS2) -o$*.o quad:$*.q 
  36.  
  37. # produce a "listing" file (by disassembly)
  38. .o.lst:
  39.     omd >$*.lst $*.o $*.c
  40.  
  41. ###### targets #####
  42. all: $(SYMDIR)$(SYM) cgdemo
  43.  
  44. CGO=cgmain.o igadgets.o ellipse.o images.o dialgadget.o 
  45. cgdemo: $(CGO)
  46.     blink $(BLOPTS) FROM lib:c.o $(CGO) LIB $(LIBS) TO $@
  47.  
  48. ##### make precompiled header files    #####
  49.  
  50. $(SYMDIR)$(SYM): $(SYM)
  51.     copy $(SYM) $(SYMDIR)
  52.  
  53. $(SYM): $(SYMSRC)
  54.     lc1 $(INCLUDE) -ph -o$(SYM) $(SYMSRC)
  55.